_Pragma("once");


/**
 * @author lizb
 */
enum ThreePhase : unit8_t {
    /**
     * ABC 三个相位
     */
    UNKNOWN = -1,
    A = 0,
    B,
    C
}


inline ThreePhase getByPhase(const char phase) {
    ThreePhase phase = ThreePhase::UNKNOWN;
    switch (phase) {
    case 'a':
    case 'A':
        phase = A;
    case 'b':
    case 'B':
        phase = B;
    case 'c':
    case 'C':
        phase = C;
    default:
        phase = UNKNOWN;
    }

    return phase;
}


